/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package umlapp.elements.members;

import umlapp.exception.UMLAppException;

/**
 *
 * Trieda reprezentujúca atribúty.
 *
 * @author Peter Chovanec
 * @author Mario Jaros
 */
public class Attribute extends AMember {

    /**
     * Hodnota daného atribútu.
     */
    private String value;

    /**
     * Konštruktor s dvoma parametrami
     *
     * @param name meno
     * @param data data
     * @throws UMLAppException
     */
    public Attribute(String name, String data) throws UMLAppException {
        super(name, data, Visibility.PACKAGE);
    }

    /**
     * Konštruktor s tromi parametrami
     *
     * @param name meno
     * @param data data
     * @param visibility viditeľnosť
     * @throws UMLAppException
     */
    public Attribute(String name, String data, Visibility visibility) throws UMLAppException {
        super(name, data, visibility);
    }

    /**
     * @return vracia hodnotu
     */
    public String getValue() {
        return value;
    }

    /**
     * @param value nastavuje hodnotu
     */
    public void setValue(String value) {
        this.value = value;
    }
}
